package cn.ecut.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @Author ruanxin
 */
//等价于    <bean id="user" class="cn.ecut.pojo.User"/>
@Component
@Scope("prototype")
public class User {

    //相当于<property name="name" value="rx"/>
    @Value("fy")
    public String name;
}
